//
//  EquipmentModel.h
//  AILock
//
//  Created by 谭亚明 on 2020/6/24.
//  Copyright © 2020 tym. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface EquipmentModel : NSObject

@property(nonatomic,copy) NSString *ipAddress;
@property(nonatomic,copy) NSString *mobile;
@property(nonatomic,copy) NSString *macAddress;
@property(nonatomic,assign) NSInteger equipmentId;
@property(nonatomic,assign) NSInteger familyRoomId;
@property(nonatomic,copy) NSString *equipmentName;
@property(nonatomic,copy) NSString *wifiName;
@property(nonatomic,copy) NSString *name;
@property(nonatomic,copy) NSString *roomName;
@property(nonatomic,copy) NSString *equipmentImage;
@property(nonatomic,copy) NSString *model;
@property(nonatomic,copy) NSString *image;
@property(nonatomic,copy) NSString *equipmentVersions;
@property(nonatomic,copy) NSString *softwareVersions;
@property(nonatomic,copy) NSString *softwareNetworkVersions;
@property(nonatomic,copy) NSString *typeValue;     //设备类型： 1/指纹锁
@property(nonatomic,copy) NSString *deviceId;
@property(nonatomic,copy) NSNumber *electricQuantity;
@property(nonatomic,assign) NSInteger wifiStrength;
@property(nonatomic,assign) NSInteger openCloseStatus;//1.门锁已休眠 2.门锁已唤醒
@property(nonatomic,assign) NSInteger timeMillisecond;

@property(nonatomic,assign) BOOL online;

@property(nonatomic,assign) BOOL isSelected;

-(NSString*)getEquipmentImage;
@end


//系统字典信息
@interface EquSubSysDict : NSObject

@property(nonatomic,strong) NSString *dictType;
@property(nonatomic,strong) NSString *typeName;
@property(nonatomic,strong) NSString *dictValue;
@property(nonatomic,strong) NSString *dictName;

@property(nonatomic,assign) NSInteger extendField;
@property(nonatomic,assign) NSInteger deleted;
@property(nonatomic,assign) NSInteger sort;
@property(nonatomic,assign) NSInteger groupNo;

@property(nonatomic,strong) NSArray <EquSubSysDict*>*subSysDictList;
@end

@interface Equipmentconfig : NSObject

@property(nonatomic,assign) NSInteger id;
@property(nonatomic,assign) NSInteger equipmentId;
@property(nonatomic,strong) NSString *deviceId;

@property(nonatomic,strong) NSString *volumeGloba;//总音量
@property(nonatomic,strong) NSString *volumeWarning;//提示音量
@property(nonatomic,strong) NSString *volumeWelcome;//欢迎语音
@property(nonatomic,strong) NSString *volumeDoorbell;//门铃语音

@property(nonatomic,strong) NSString *channelOpenDoorWay;//通道验证开门方式 00/关闭 01/开启
@property(nonatomic,strong) NSString *doubleOpenDoorWay;//双重验证开门方式 00/关闭 01/开启
@property(nonatomic,strong) NSString *openInfoPush;//开门信息推送 00/不推送 01/推送
@property(nonatomic,strong) NSString *alarmInfoPush;//报警信息推送 00/不推送 01/推送
@property(nonatomic,strong) NSString *remoteOpendoorAuth;//远程开门权限
@property(nonatomic,strong) NSString *openDoorParam;//开锁参数
@property(nonatomic,strong) NSString *createTime;

@end

NS_ASSUME_NONNULL_END
